import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Test from '../views/test.vue'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Test',
    component: Test
  },
  {
    path:'/show',
    name: 'Show',
    component:()=>import('../views/show.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
